package com.ctshk.rpc.air.entity.es;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * @BelongsProject: ctshk-cloud
 * @BelongsPackage: com.ctshk.rpc.air.entity.es
 * @Author: hef
 * @CreateTime: 2021-05-19 14:00
 * @Description: 描述
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class AirProductCostEs implements Serializable {
    /**
     * 有效开始时间
     */
    @Field(type = FieldType.Date,format = DateFormat.year_month_day)
    private LocalDate validStartDate;
    /**
     * 有效结束时间
     */
    @Field(type = FieldType.Date,format = DateFormat.year_month_day)
    private LocalDate validEndDate;
    /**
     * 币种Id
     */
    @Field(type = FieldType.Long)
    private Long currencyId;
    /**
     * 币种名称
     */
    @Field(type = FieldType.Text)
    private String currencyName;
    /**
     * 旅客成本信息
     */
    @Field(type = FieldType.Auto,name = "airBookingListTourist")
    @ApiModelProperty(value = "旅客价格信息")
    private List<AirBookingListTouristEs> airBookingListTouristDTOList;
}
